home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xmu / misc.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  42 lines

  1. /*
  2. * $XConsortium: Misc.h,v 1.1 89/05/10 16:00:25 jim Exp $
  3. */
  4.  
  5. /***********************************************************
  6. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  7. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Digital or MIT not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /* Various useful constant and macro definitions */
  30.  
  31. #ifndef _Xmu_Misc_h
  32. #define _Xmu_Misc_h
  33.  
  34. #define MAXDIMENSION    ((1 << 31)-1)
  35.  
  36. #define Max(x, y)    (((x) > (y)) ? (x) : (y))
  37. #define Min(x, y)    (((x) < (y)) ? (x) : (y))
  38. #define AssignMax(x, y)    {if ((y) > (x)) x = (y);}
  39. #define AssignMin(x, y)    {if ((y) < (x)) x = (y);}
  40.  
  41. #endif /*_Xmu_Misc_h*/
  42.